package team.seekers.oj.codetest.entity.dao;

import com.baomidou.mybatisplus.annotation.*;
import lombok.*;
import team.seekers.oj.common.entity.BaseDO;

import java.util.Date;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = true)
@TableName(CodeTestDescriptionDOField.TABLE_NAME)
public class CodeTestDescriptionDO extends BaseDO {

    @TableId(value = CodeTestDescriptionDOField.ID,type = IdType.AUTO)
    private Long id;

    @TableField(CodeTestDescriptionDOField.IS_PUBLIC)
    private Integer isPublic;

    @TableField(CodeTestDescriptionDOField.CODE_ID)
    private Long codeId;

    @TableField(CodeTestDescriptionDOField.USER_ID)
    private Long userId;

    @TableField(CodeTestDescriptionDOField.NAME)
    private String name;

    @TableField(CodeTestDescriptionDOField.DESCRIPTION)
    private String description;

    @TableField(CodeTestDescriptionDOField.DELETED)
    //@TableLogic(value = "0", delval = "1")
    private Integer deleted;

    @TableField(value = CodeTestDescriptionDOField.GMT_CREATE,fill = FieldFill.INSERT)
    private Date gmtCreate;

    @TableField(value = CodeTestDescriptionDOField.GMT_MODIFIED, fill = FieldFill.INSERT_UPDATE)
    private Date gmtModified;

    @TableField(CodeTestDescriptionDOField.VERSION)
    private Integer version;
}
